﻿#ifndef df_allocator_h__2014_3_18__18_20
#define df_allocator_h__2014_3_18__18_20


namespace df
{
	template<class T>
	struct Allocator
	{

		static T * New()
		{
			return new T();
		}

		static void Delete(T * obj)
		{
			delete obj;
		}

		static T * NewArray(intptr_t size)
		{
			return new T[size];
		}

		static void DeleteArray(T * obj)
		{
			delete[] obj;
		}

	};
}


#endif // df_allocator_h__2014_3_18__18_20
